package com.javid.study.Do;

import lombok.Data;

import java.util.*;

@Data
public class NYNDo {
    public List<String> poker;
    public String[] savePoker = new String[]{"A", "5", "8", "10", "2"};
//    public String[] savePokerNeedDelete = new String[]{"2", "K"};
    public String[] comeon = new String[]{"9", "J", "Q", "K"};
    public String[] nameList;
    public int whohas2 = 0;
    public int nextKDrinkNum = 0;
    public int now = 1;
    public String lastgetPoker;
    public String pokerDescribe;
    public LinkedHashMap<String, List<String>> namePoker = new LinkedHashMap<>();
    public LinkedHashMap<String, Integer> needDrinkList = new LinkedHashMap<>();
    public LinkedHashMap<String, Integer> hasDrinkedList = new LinkedHashMap<>();
    public Map<String, String> pokerDescMap = new HashMap<>();

    public NYNDo(){
        List<String> puke = new ArrayList<>();
        //定义数字
        String[] nums = {"2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"};
        //定义花色
        String[] color = {"♠", "♥", "♣", "♦",};
        for (String num : nums) {
            for (String s : color) {
                String poker = s + num;
                puke.add(poker);
            }
        }
        poker = puke;
        pokerDescMap.put("A", "说明：道具牌，可抵1杯");
        pokerDescMap.put("2", "说明：其他玩家喝的时候陪1杯");
        pokerDescMap.put("3", "说明：逛三园（玩家依次说：星期天，逛三园，什么园，动物园，猴子，长颈鹿。。。）");
        pokerDescMap.put("4", "说明：指定一名玩家划拳，输的喝1杯");
        pokerDescMap.put("5", "说明：道具牌，玩家可在游戏进行任一时刻说“照相机”，其他玩家在一分钟内不能动，最先动的喝1杯");
        pokerDescMap.put("6", "说明：扭一扭，玩家依次说“n棵柳树扭n扭”，其中n由抽到的玩家指定，后面依次加1，说错的喝");
        pokerDescMap.put("7", "说明：玩家指定一个数字，其他玩家接，缝7和7的倍数跳过");
        pokerDescMap.put("8", "说明：厕所牌，可去一次厕所");
        pokerDescMap.put("9", "说明：抽到的玩家喝一杯");
        pokerDescMap.put("10", "说明：道具牌，玩家可在游戏进行任一时刻说“我是神经病”，其他玩家不能与其说话，直至本轮结束，若与其说话则喝1杯");
        pokerDescMap.put("J", "说明：抽到此牌左手边的玩家喝一杯");
        pokerDescMap.put("Q", "说明：抽到此牌右手边的玩家喝一杯");
        pokerDescMap.put("K", "说明：首次抽到不喝，之后抽到的玩家依次喝累加1的杯数");
    }
}
